#include <graphics/lge_graphicssubsystem.h>
#include <job/lge_jobsubsystem.h>
#include <queue>
#include <stdio.h>

PFNGLCREATESHADERPROC glCreateShader = 0;

bool initGLExt()
{
	glCreateShader = (PFNGLCREATESHADERPROC)wglGetProcAddress("glCreateShader");
	if (!glCreateShader)
		return false;

	return true;
}

void init()
{
	JobSubsystem::Configuration jobConf(
		0  			// Use core count as thread number
		);
	initSubsystem<JobSubsystem>(jobConf);

	GraphicsSubsystem::Configuration graphicsConf;
	initSubsystem<GraphicsSubsystem>(graphicsConf);
}

void start()
{
	JobSubsystem::instance().start();	
}

int main(int argc, char ** argv)
{
	init();
	start();
	
	return 0;
}
